﻿using System.ComponentModel;

namespace MetaView.Ticket.Common
{
    public class GlobalStaticData
    {
        //绑定静态属性时，需要实现INotifyPropertyChanged接口
        public static event EventHandler<PropertyChangedEventArgs>? StaticPropertyChanged;

        private static int languageNum = 0;

        //语言编号：0-中文；1-英文
        public static int LanguageNum
        {
            get { return languageNum; }
            set
            {
                languageNum = value;
                StaticPropertyChanged?.Invoke(null, new PropertyChangedEventArgs(nameof(LanguageNum)));
            }
        }

        // 中英文对应的值字典
        public static Dictionary<string, string> LanguageDic { get; set; } = new();

        //配置文件AppSettings.json文件路径
        public static string AppSettingsFilePath { get; set; } = AppDomain.CurrentDomain.BaseDirectory + "AppSettings.json";
    }
}
